/*
 * Copyright 2012-2014 Finbudget.com
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package finbudget.shared;

public class Constants {
	public static final String devError = " Это ошибка разработчиков. Пожалуйста, обратитесь к ним с описанием ошибки и того, при каких условиях она возникла.";
	public static final String msgNotImplemented = "This function is not implemented. This message should not appear for you. Please call to Finbudget developers describing details on how you've got it.";
	public static final String russianLocale = "ru-RU";

	// Identifiers used on both client and server sides.
	public static final String fieldDate = "date";
	public static final String fieldAccount = "account";
	public static final String fieldDebit = "debit";
	public static final String fieldCredit = "credit";
	public static final String fieldDescription = "desc";
	public static final String fieldScenario = "scenario";
	public static final String fielSource = "source";
	public static final String fieldAttachment = "attachment";
	public static final String fieldContragentDetails = "details";
	public static final String fieldNodeBase = "base";
	public static final String fieldNodeParent = "parent";
	public static final String fieldNodeName = "name";
	public static final String fieldTotal = "total";
	public static final String fieldLevel = "level";
	public static final String fieldSortCode = "sortCode";
	public static final String fieldPermissions = "permissions";
	public static final String fieldDateCreated = "dateCreated";
	public static final String fieldDateUpdated = "dateUpdated";
	public static final String fieldOperatorCreated = "operatorCreated";
	public static final String fieldOperatorUpdated = "operatorUpdated";
	/**
	 * This field is used in a couple with fieldDebit in filtering forms.
	 */
	public static final String fieldDebitComparison = "debitcomparison";
	public static final String fieldCreditComparison = "creditcomparison";
	public static final String fieldFirstDate = "firstdate";
	public static final String fieldLastDate = "lastdate";
	public static final String filterFieldFirstPeriod = "firstperiod";
	public static final String filterFieldLastPeriod = "lastperiod";

	public static final String buttonSubmitAndCleanup = "submitclean";
	public static final String buttonSubmitAndClose = "submitclose";
	public static final String buttonCleanup = "cleanup";
	public static final String buttonClose = "buttonclose";

	// Predefined project analytics. DO NOT MODIFY! as this is used in the process of creating the database
	public static final String fieldProjectDirection = "area";
	// Predefined budget item analytics. DO NOT MODIFY!
	public static final String fieldBudgetItemAccountType = "accounttype";

	public static final String formatCurrency = "#,##0.00";
	public static final String formatCurrencyNoFractions = "#,###";

	// Styles
	public final static String styleElement = "fb-formelement";
	public final static String styleHellipButton = "fb-formhellipbutton";
	public final static String styleComment = "fb-formcomment";

	// URLs and constants for blobs
	public final static String urlFileUpload = "/blobs/put";
	public final static String urlDownload = "/blobs/download";
	public final static String paramKeyNode = "key";
	public final static String paramRandom = "random";
	public final static String paramBlob = "blob";
	public final static String blobStart = "Blobkey:";

	public final static int taskTimoutSeconds = 10 * 60 - 2; // 10 minutes

	// URL and constant for exporting reports in Excel format
	public static final String urlExportReportToExcel = "/xlsx/getreport";
	public static final String paramExcelReportDto = "dto";

	// Predefined OpenId domains
	public static final String gmail = "gmail.com";
	public static final String mailru = "mail.ru";
	public static final String yandex = "yandex.ru";
	public static final String yahoo = "yahoo.com";
	public static final String fd = "fd";

	// Part of URL to login
	public static final String realm = "realm";

	public static final String fieldGuid = "guid";

	public static final String fakeNodeKeyForAttachments = "fakeTemporalNodeKeyForAttachments";
	public static final String mimeXml = "text/plain";

	public static final String utf8 = "UTF-8";

}
